from skimage import io, color

img = io.imread(r"E:\studylife\detectflaws\pythonCode\deepAndPhase\comsolCompareTrue\Hz0.070000nodt1.jpg")

# 将彩色图像转换为灰度图
gray_image = color.rgb2gray(img)

io.imshow(gray_image)
io.show()